package com.yunfei.api.v2.qiuzhi.result;

import com.yunfei.core.utils.string.StringUtil;
import io.swagger.annotations.ApiModelProperty;

/**
 *@tablename 求知广场接口返回结果
 *@author zhengyunfei
 *@createDate Tue Oct 23 10:23:54 CST 2018
 */


public class QiuZhiResult implements java.io.Serializable{
    @ApiModelProperty(value = "问题编号")
     private String quesId;
    @ApiModelProperty(value = "问题题目")
     private String quesTit;
    @ApiModelProperty(value = "创建日期")
     private String createDate;
    @ApiModelProperty(value = "提问人id")
    private String userId;
    @ApiModelProperty(value = "提问人姓名")
    private String userName;
    @ApiModelProperty(value = "提问人类型 01客户02理财师03投资者")
    private String userType;
    @ApiModelProperty(value = "头像")
    private String headIcon;

    public String getHeadIcon() {
        return headIcon;
    }

    public void setHeadIcon(String headIcon) {
        this.headIcon = headIcon;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getQuesId() {
        return quesId;
    }

    public void setQuesId(String quesId) {
        this.quesId = quesId;
    }

    public String getQuesTit() {
        return quesTit;
    }

    public void setQuesTit(String quesTit) {
        this.quesTit = quesTit;
    }

    public String getCreateDate() {
        //只保留年月日时分
        if(!StringUtil.isNullOrEmpty(createDate)&&createDate.length()==19){
            createDate=createDate.substring(0,16);
        }
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }
}

